<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" />
    <title>Title</title>
    <style type="text/css">
        td{
            text-align: center;
           /*// background-color: red;*/
        }
    </style>
</head>
<body>

<h1>商品列表</h1>

<table th:each="yiji:${list1}">
    <tr >
        <!--<td th:text="${yiji.id}"></td>-->
        <td th:text="${yiji.name}"></td>
       <!-- <td th:each="erji:${list2}">
            <span th:text="${erji.name}"></span>
        </td>-->
    </tr>
    <tr>
        <th>编号</th>
        <th>名字</th>
        <th>地址</th>
        <th>操作</th>
    </tr>
    <tbody th:each="user:${product}">
    <tr th:if="${user.categoryLevel1Id==yiji.id}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.price}"></td>
        <td><a  th:href="@{/productUI/queryid(id=${user.id})}">详情</a></td>
    </tr>
    </tbody>

</table>



</body>
</html>